# 密码检查

f1 = open("pwd.txt", 'r', encoding="utf-8")
x = input("用户名：")
y = input("密码：")

flag = False
for user in f1.readlines():
    user = user.strip("\n")
    user = user.split(',')
    if x == user[0] and y == user[1]:
        flag = True
        break
if flag:
    print("密码正确")
else:
    print("用户名或密码错误")
f1.close()
